<template>
  <div id="app" style="overflow: auto;">

    <nav class="router-header">
      <div class="logo">
        <img src="./assets/logo-a.png">
        <span class="txt">MUI</span>
      </div>

      <ul>
        <li class="active">
          <router-link to="/HelloWorld">首页</router-link>
        </li>
      </ul>
    </nav>
    <div style="clear: both;"></div>
    <div class="app-content">
      <router-view/>
    </div>
  </div>
</template>

<script>
//  require('./assets/css/app.less')
//  require('./assets/css/app.scss')
//  require('./assets/css/app.css')
  export default {
    name: 'App'
  }
</script>

<style lang="scss" rel="stylesheet/scss">
  @import "assets/css/app.css";
  @import "assets/css/app.less";
  @import "assets/css/app.scss";
  //头部导航
  .router-header {
    margin: 0 auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #dfdfdf;
    .logo {
      float: left;
      height: 100%;
      width: auto;
      padding: 10px 0 0 20px;
      .txt {
        font-weight: 900;
        font-size: 24px;
        vertical-align: middle;
      }
      img {
        height: 60%;

      }
    }
  }

  .router-header:hover {
    box-shadow: -1px 1px 1px #dfdfdf;
    transition: all 0.6s;
  }

  //头部右侧菜单
  .router-header ul, .router-header li {
    list-style: none;
  }

  .router-header ul {
    float: right;
    overflow: auto;
    height: 100%;
    margin-right: 40px;
  }

  .router-header li {
    float: left;
    height: 100%;
    font-size: 16px;
    line-height: 60px;
    width: 2.2em;
    text-align: center;
    border-bottom: 2px solid #fff;
  }

  .router-header li.active {
    border-bottom: 2px solid #62c09c;
  }

  .router-header li a {
    color: #999;

    font-weight: 400;
    box-sizing: content-box;

  }

  .router-header li:hover {
    border-bottom: 2px solid #62c09c;
    transition: all 200ms;
    a {
      color: #333;
    }
  }

  //内容页面
  .app-content {
    margin-top: 60px;
  }

</style>
